package com.demo.designmode.state.before;

/**
 * @Author: jxm
 * @Description: 电梯接口
 * @Date: 2023-12-11 16:30
 * @Version: 1.0
 */
public interface ILift {
    //电梯的4个状态
    //开门状态
    int OPENING_STATE = 1;
    //关门状态
    int CLOSING_STATE = 2;
    //运行状态
    int RUNNING_STATE = 3;
    //停止状态
    int STOPPING_STATE = 4;

    //设置电梯的状态的功能
    void setState(int state);

    //电梯的动作
    void open();
    void close();
    void run();
    void stop();


}
